package com.bush.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.bush.mall.common.entity.Result;;
import com.bush.mall.product.entity.AttrGroupEntity;
import com.bush.mall.product.entity.dto.AttrGroupDTO;

import java.util.List;

/**
 * 属性分组
 * @author RUN
 * @date 2022-11-28
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    public static final String BEAN_ID = "mall.attrGroupService";

    /**
     * 分页查询属性分组列表
     * @author RUN
     * @date 2022-12-11
     */
     Result queryForPage(AttrGroupDTO dto);


    /**
     * 创建属性分组表单对象
     * @author RUN
     * @date 2022-11-28
     */
     Result saveAttrGroup(AttrGroupEntity attrGroup);


    /**
     * 修改属性分组表单对象
     * @author RUN
     * @date 2022-11-28
     */
     Result updateAttrGroup(AttrGroupEntity attrGroup);

    /**
     * 通过ids批量删除属性分组
     * @author RUN
     * @date 2022-12-11
     */
     Result deleteAttrGroup(List<Long> ids);

    /**
     * 查询通过id
     * @param id id
     * @return {@link Result}
     */
    Result queryById(Long id);
}

